package com.zff.rental.repository.dict;

import com.zff.rental.entity.dict.KeyValueDict;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author HCY
 */
@Repository
public interface KeyValueDictRepository extends JpaRepository<KeyValueDict, KeyValueDict.MId> {
    List<KeyValueDict> findAllByType(Integer type);

    List<KeyValueDict> findAllByTypeIn(List<Integer> types);
}
